


//
export type TResponse<T> = {
  success: boolean,
  code: number,
  msg: string,
  data: T
}

// 数据库执行结果
export type TRes<T> = {
  data: T,
  msg?: string,
  sql?: boolean
}


export const CODE = {
  SUCCESS: 200,
  PARAMERROR: 201,
  SQLERROR: 202,
  DATAESIST: 203,
  NOAUTH: 204,
  FAIL: 205
}
